﻿/**
 * @author Administrator
 */

/**
 * 显示或隐藏下拉表格
 * @param {Object} target
 */
function hidTable(target){
	var myTb = document.getElementById(target);
	if(myTb.style.display == "inline"){
		myTb.style.display = "none";
	} else {
		myTb.style.display = "inline";
	}
}

/**
 * 打开联系人信息模态窗口
 * @param {Object} lmid
 */
function openLinkManDialogWindow(lmid){
	window.showModalDialog('GroupLinkManInfo.aspx?pcglm_id=' + lmid, "", 'status:no;center:yes;scroll:0;resizable:no;help:no;dialogWidth:504px;dialogHeight:515px');
	return false;
}

/**
 * 检查新建分组名称
 * @param {Object} target
 */
function checkCreateGroup(target){
	if(document.getElementById(target).value== ""){
		alert("分组名不能为空！");
		return false;
	}
	return true;
}
